﻿@model HR.ProjectX.GUI.ViewModels.Booking.BookingBookView

@{
    ViewBag.Title = "Book";
}

<h1 class="page-title">Book @Model.VehicleModel</h1>

@if (Model.HasIssue)
{
    <div style="color: #D63301; background-color: #FFCCBA; padding: 2px 2px 2px 10px; margin-bottom: 10px;" >
        <p>@Html.Encode(Model.Message)</p>
    </div>
}

@using (Html.BeginForm())
{
    @Html.HiddenFor(v => v.VehicleModel)
    <table>
        <tr>
            <td class="tbl-cell-label">
                <label>Date From</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(d => d.DateFrom)
                @Html.ValidationMessageFor(model => model.DateFrom)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>Date To</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(d => d.DateTo)
                @Html.ValidationMessageFor(model => model.DateTo)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>Email</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(e => e.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="Book" />
            </td>
        </tr>
    </table>
}